<?php

require_once(t3lib_extMgm::extPath('zlib') . 'class.tx_zlib_model.php');

class tx_zboard_post extends tx_zlib_model
{

    /**
     * @return string
     */
    public function getAvatarPath()
    {
        if(!empty($this->avatar)) {
            $filename = 'uploads/pics/' . $this->avatar;
            if(is_file($filename)) {
                return $filename;
            }
        }
        return '';
    }

}

if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_post.php']) {
	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/zboard/class.tx_zboard_post.php']);
}
